package demo2;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:
 * Date: 2024-05-30
 * Time: 19:41
 */

class base{
    public void test(){
        System.out.println("test(a).....");
    }
}


public class dervied extends base {
    private int a = 1;
    private int b = 2;

    public void test(){
        System.out.println("test().....");
    }

    public void testA(){
        test();
        super.test();
    }

    public static void main(String[] args) {
        dervied dervied = new dervied();
        dervied.testA();
    }
}
